From f12f66f4e64441cb72af110eec6942784352e2d7 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 3 Jan 2025 15:33:50 +0100 Subject: [PATCH] fix code style Signed-off-by: Matthieu Gallien --- src/libsync/discovery.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 833e3ffa0..ad23815a4 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -2205,20 +2205,24 @@ void ProcessDirectoryJob::setupDbPinStateActions(SyncJournalFileRecord &record) { // Only suffix-vfs uses the db for pin states. // Other plugins will set localEntry._type according to the file's pin state. - if (!isVfsWithSuffix()) + if (!isVfsWithSuffix()) { return; + } auto pin = _discoveryData->_statedb->internalPinStates().rawForPath(record._path); - if (!pin || *pin == PinState::Inherited) + if (!pin || *pin == PinState::Inherited) { pin = _pinState; + } // OnlineOnly hydrated files want to be dehydrated - if (record._type == ItemTypeFile && *pin == PinState::OnlineOnly) + if (record._type == ItemTypeFile && *pin == PinState::OnlineOnly) { record._type = ItemTypeVirtualFileDehydration; + } // AlwaysLocal dehydrated files want to be hydrated - if (record._type == ItemTypeVirtualFile && *pin == PinState::AlwaysLocal) + if (record._type == ItemTypeVirtualFile && *pin == PinState::AlwaysLocal) { record._type = ItemTypeVirtualFileDownload; + } } } -- 2.30.2